package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.FileModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface FileModelRepository extends JpaRepository<FileModel,Integer>, JpaSpecificationExecutor<FileModel> {


    void deleteByFileGroupId(Integer groupId);

    List<FileModel> findAllByFileGroupId(Integer groupId);
}
